﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnimaGestionPersonnage.Utilities
{
    public class Race : IEquatable<Race>, IEquatable<String>
    {
        public String name { get; set; }
        public List<String> notes { get; set; }
        public List<SkillMod> bonuses { get; set; }
        public List<StatBonus> statBonuses { get; set; }

        public Race()
        {
            notes = new List<string>();
            bonuses = new List<SkillMod>();
            statBonuses = new List<StatBonus>();
        }

        public Race(string n) : this()
        {
            name = n;
        }

        public override string ToString()
        {
            return this.name;
        }

        public bool Equals(Race otherRace)
        {
            return name.Equals(otherRace.name);
        }

        public bool Equals(String otherRace)
        {
            return name.Equals(otherRace);
        }
    }
}
